package com.zhilifang.modules.zlf.controller;

import java.util.List;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.zhilifang.modules.zlf.entity.Menu;
import com.zhilifang.modules.zlf.service.impl.MenuServiceImpl;

/**
 * Controller 头部菜单Controller
 */
@Controller
@RequestMapping("/menuController")
public class MenuController {

	@Autowired
	private MenuServiceImpl menuServiceImpl;


	/**
	 * 初始加载数据
	 * 
	 * @return
	 */
	@RequestMapping(value = "/selectMenuListr", method = RequestMethod.GET)
	@ResponseBody
	public List<Menu> selectMenuListr(){
		List<Menu> list = menuServiceImpl.selectMenuListr();	
		return list;
	}


}
